package com.localjoycommunity.cpdj.project.system.domain;

import com.localjoycommunity.cpdj.framework.aspectj.lang.annotation.Excel;
import com.localjoycommunity.cpdj.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户答题记录对象 user_answer
 *
 * @author leepandar
 * @date 2020-11-16
 */
public class UserAnswer extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    private String title;
    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 试卷id
     */
    @Excel(name = "试卷id")
    private Long paperId;

    /**
     * 用户答案
     */
    @Excel(name = "用户答案")
    private String userAnswers;

    /**
     * 用户答案
     */
    @Excel(name = "用户答案")
    private String answerId;

    /**
     * 正确答案id
     */
    @Excel(name = "正确答案id ")
    private String correctAnswers;

    /**
     * $column.columnComment
     */
    @Excel(name = "正确答案id ")
    private String wrongQuestion;

    /**
     * 错题数
     */
    @Excel(name = "错题数")
    private Long wrongNum;

    private Long correctNum;
    private Long scoreTotal;

    /**
     * 正确率
     */
    @Excel(name = "正确率")
    private Long correctPercent;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setUserAnswers(String userAnswers) {
        this.userAnswers = userAnswers;
    }

    public String getUserAnswers() {
        return userAnswers;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    public String getAnswerId() {
        return answerId;
    }

    public void setCorrectAnswers(String correctAnswers) {
        this.correctAnswers = correctAnswers;
    }

    public String getCorrectAnswers() {
        return correctAnswers;
    }

    public void setWrongQuestion(String wrongQuestion) {
        this.wrongQuestion = wrongQuestion;
    }

    public String getWrongQuestion() {
        return wrongQuestion;
    }

    public void setWrongNum(Long wrongNum) {
        this.wrongNum = wrongNum;
    }

    public Long getWrongNum() {
        return wrongNum;
    }

    public void setCorrectPercent(Long correctPercent) {
        this.correctPercent = correctPercent;
    }

    public Long getCorrectPercent() {
        return correctPercent;
    }

    public Long getCorrectNum() {
        return correctNum;
    }

    public void setCorrectNum(Long correctNum) {
        this.correctNum = correctNum;
    }

    public Long getScoreTotal() {
        return scoreTotal;
    }

    public void setScoreTotal(Long scoreTotal) {
        this.scoreTotal = scoreTotal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("paperId", getPaperId())
                .append("userAnswers", getUserAnswers())
                .append("answerId", getAnswerId())
                .append("createTime", getCreateTime())
                .append("correctAnswers", getCorrectAnswers())
                .append("wrongQuestion", getWrongQuestion())
                .append("wrongNum", getWrongNum())
                .append("correctPercent", getCorrectPercent())
                .toString();
    }
}
